<?php

namespace common\models\db;

use Yii;

/**
 * This is the model class for table "tbl_admin_role".
 *
 * @property int $role_id
 * @property string|null $role_name
 * @property string|null $menus
 * @property string|null $create_time
 * @property string|null $update_time
 */
class AdminRole extends BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'tbl_admin_role';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['role_name'], 'required', 'message' => '{attribute}不能为空'],
            [['menus', 'create_time', 'update_time'], 'safe'],
            [['role_name'], 'string', 'max' => 64],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'role_id' => 'Role ID',
            'role_name' => '角色名称',
            'menus' => 'Menus',
            'create_time' => 'Create Time',
            'update_time' => 'Update Time',
        ];
    }
}
